#include <stdio.h>
#include <conio.h>
#include <math.h>

double f(double);
double Integral(double, double, int);

void main()
{
  printf("\n Integral=%g", Integral(1,2.2,50));
  getch();
};

double f(double x)
{
  return sqrt(1.5*x+0.6)/(1.6+sqrt(0.8*x*x+2));
};

double Integral(double a, double b, int n)
{
  int i;
  double s,x,h;
  h=(b-a)/n;
  x=a+h/2;
  s=0;
  for(i=1; i<=n; i++)
  {
    s=s+h*f(x);
    x=x+h;
  };
  return s;
};
